Skip to main content

R - Programming project on "Rainfall Record"

R - Programming project on "Rainfall Record" 


# Source code
# RAINFALL RECORD PROJECT 
# 1.Read Data...
data <- data.frame(
  sr.no = c(1:10),
  year = c(2011:2020),
  time = c(5,10,15,20,25,30,35,40,45,50),
  mm = c(21,22,23,24,25,26,27,28,29,30),
  stringsAsFactors = FALSE)
print(data)

# Display data using head...
head(data)
#structure data
Str(data) 

# 2. Display summary of data...
summary(data)
print(head(data))

# 3.display of important col
print(ncol(data))
print(nrow(data))

# 4.create histogram...
hist(x = data$time,xlab = "time",
     col = "black",
     border = "orange",
     breaks = 5,)


# 5.create piechart and 3D pie chart...
pie(data$year,data$time,col = rainbow(length(data$sr.no)),main = "piechart")

# 3D pie chart
pie3D(data$mm,labels = data$time,explode = 0.1,main = "Rainfall record 3D pie chart")

# 6.create boxplot
boxplot(data$mm, data$time,
        xlab = "Year",
        ylab = "Time",
        main = "Rainfall Record")

# 7.Create a scatterplot...
plot(x = data$year,y = data$time,
     xlab = "year",
     ylab = "rainfall",
     xlim = c(2011,2020),
     ylim = c(5,50),
     main = "Rainfall Record"
)

# 8.create a bar chart
barplot(data$mm,data$time,
        xlab = "years",
        ylab = "time in hour",
        main = "Rainfall",
        border = "black")

# 9.Create a line graph
plot(data$year,type = "o")

Comments

Popular posts from this blog

Classification of Networks Based on Geographical Classification

               ***Classification of Networks Based on Geographical Classification***                   In this section ,we will discuss the following categories of networks.                                                                                                                 PAN ...

Types of server, all types of server file server, print server, application server, database server, message server information.

                                                                                                                    Types of Servers Hi today’s blog is on types of Servers. You can take knowledge of types of servers blog in marathi मराठी. Link https://myblogs0727.blogspot.com/2020/05/blog-post_11.html?m=1 Servers are those who connects us to the internet or links us to a good internet (net) service that we uses the connection of the service.        Server is the thing that serves the service to us i.e. end users, in other words it plays roll like servant which serves us ...

Blog on computer network

computer network BLOGGER.COM           ****   Blog On Computer Network***                                                                                      PART-1.         computer network is nothing but, the network that is spread in our environment. network is a broad term similar to "system". Network is communication system which supports many users. computer network system| computer networking system server types        this link is for server types blog in english,, and in its comment section it is in marathi also              The interconnection of one station to many stations is called as networking.           ...